package com.example.activemq.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * 订阅者
 */
@Service
public class Subcriber {

    @JmsListener(destination = "test.topic", containerFactory = "jmsListenerContainerFactoryTopic")
    public void subcriber(String text){
        System.out.println("=============<<<<<收到订阅消息 ： " + text);
    }
}
